All Functions of Week 4

ifelse

{base}

Return a or b depending on the value of test

sd

{stats}

Get standard deviation of a vector

complete.cases

{stats}

Find Complete Cases

library

{base}

Load an R package

max

{base}

Get maximum of a vector

t.test

{stats}

Performs one and two sample t-tests on vectors of data.

cut

{base}

Convert Numeric to Factor

mutate

{dplyr}

Modify/create a column in a data frame

c

{base}

Combine values/vectors into a vector

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

mean

{base}

Get mean of a vector

setwd

{base}

Set Working Directory

with

{base}

evaluate expression in the context of a data frame

prop.test

{stats}

Test of Equal or Given Proportions

median

{stats}

Get median of a vector

The end!